package com.lib.model.enums;

/**
 * Created by duqingxiang on 17/5/22.
 */
public enum RentalAgentStatusEnum {

    NEW(0, "新注册"),
    APPLY(1, "申请中"),
    NORMAL(2, "申请通过");

    private int id;

    private String name;

    RentalAgentStatusEnum(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static RentalAgentStatusEnum valueOf(long id) {
        for (RentalAgentStatusEnum type : values()) {
            if (type.id == id) {
                return type;
            }
        }
        return null;
    }



}
